package com.ruoyi.system.protocol;

import java.util.List;
import java.util.Map;

public interface IDynamicDataService {
    /**
     * 获取数据
     * @param classesEn 资源库
     * @param selectField 查询字段
     * @param condition 查询条件
     * @param sortCondition 排序条件
     * @param pageNum 第几页
     * @param pageSize 每页多少条
     * @return
     */
    List<Map<String, Object>> getDynamicData(String classesEn, List<String> selectField, Map<String, Object> condition, Map<String, Object> sortCondition, Integer pageNum, Integer pageSize);
    Long getDynamicDataCount(String classesEn, Map<String, Object> condition);
    Map<String, Object> findDynamicData(String classesEn, List<String> selectField, String id);
    String addDynamicData(String classesEn, Map<String, Object> dynamicData);
    boolean addBatchDynamicData(String classesEn, List<Map<String, Object>> dynamicDatas);
    boolean editDynamicData(String classesEn, Map<String, Object> dynamicData, Map<String, Object> condition);
    boolean delDynamicData(String classesEn, Map<String, Object> condition);



}
